﻿namespace WP7.Calculator.ViewModel
{
	public class ViewModelLocator
	{
		private static MainViewModel _main;

		/// <summary>
		/// Initializes a new instance of the ViewModelLocator class.
		/// </summary>
		public ViewModelLocator()
		{
			////if (ViewModelBase.IsInDesignModeStatic)
			////{
			////    // Create design time services and viewmodels
			////}
			////else
			////{
			////    // Create run time services and view models
			////}

			_main = new MainViewModel();
		}

		/// <summary>
		/// Gets the Main property which defines the main viewmodel.
		/// </summary>
		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance",
			"CA1822:MarkMembersAsStatic",
			Justification = "This non-static member is needed for data binding purposes.")]
		public MainViewModel Main
		{
			get
			{
				return _main;
			}
		}
	}
}